﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="intelliEssayBugCheckSystem.MainWindow"
        Title="intelliSys BugCheck System" Height="440" Width="800" MinWidth="600" MinHeight="440" SizeChanged="MainWindows_Resized">
	<Window.Resources>
		<Storyboard x:Key="OnLoaded1">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="BorderBSOD">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="-604"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="OnLoaded2">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="BorderBSOD">
				<EasingDoubleKeyFrame KeyTime="0" Value="-604"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="16"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Window.Resources>
    <Grid Margin="0,0,-8,0">
    	<TextBlock x:Name="WelcomeBannerTextBlock" HorizontalAlignment="Left" Height="25" Margin="8,8,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="282.5" FontSize="16"><Run Language="zh-cn" Text="你好，"/></TextBlock>
    	<TabControl Margin="4,33,8,45">
    		<TabItem Header="Bugs">
    			<TabItem.Background>
    				<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
    					<GradientStop Color="#FFF3F3F3" Offset="0"/>
    					<GradientStop Color="#FFEBEBEB" Offset="0.5"/>
    					<GradientStop Color="#FFDDDDDD" Offset="0.5"/>
    					<GradientStop Color="#FFB2B2B2" Offset="1"/>
    				</LinearGradientBrush>
    			</TabItem.Background>
    			<Grid Background="#FFB2B2B2">
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition Width="0.202*"/>
    					<ColumnDefinition Width="0.798*"/>
    				</Grid.ColumnDefinitions>
    				<CheckBox x:Name="ShowOnlyMyBugs" Content="Only My Bugs" Height="20" Margin="122.86,6.83,0,0" VerticalAlignment="Top" Click="ShowOnlyMyBugsCheckBox_Clicked" IsChecked="True" Grid.Column="1" HorizontalAlignment="Left" Width="97.473"/>
    				<CheckBox Content="Only Unsolved" Height="20" Margin="0,6.83,119.855,0" VerticalAlignment="Top" Grid.Column="1" Click="OnlyUnsolvedCheckBox_Click" x:Name="OnlyUnsolvedCheckBox" HorizontalAlignment="Right" Width="105.333" />
    				<Button x:Name="MarkAsUndoneButton" HorizontalAlignment="Right" Height="25" Margin="0,1.83,89.666,0" VerticalAlignment="Top" Width="25" IsDefault="True" ToolTip="Mark as Undone" Grid.Column="1" Click="MarkAsUndoneButton_Click">
    					<Image Height="20" Source="Resources/Pending.png" Stretch="Fill" Width="20"/>
    				</Button>
    				<Button x:Name="MarkAsProcessingButton" HorizontalAlignment="Right" Height="25" Margin="0,1.83,62.998,0" VerticalAlignment="Top" Width="25" IsDefault="True" ToolTip="Mark as Processing" Grid.Column="1" Click="MarkAsProcessingButton_Click">
    					<Image Height="20" Source="Resources/Processing.png" Stretch="Fill" Width="20"/>
    				</Button>
    				<Button x:Name="MarkAsDoneButton" HorizontalAlignment="Right" Height="25" Margin="0,1.83,36.33,0" VerticalAlignment="Top" Width="25" IsDefault="True" ToolTip="Mark as Done" Grid.Column="1" Click="MarkAsDoneButton_Click">
    					<Image Height="20" Source="Resources/Done.png" Stretch="Fill" Width="20"/>
    				</Button>
    				<Button x:Name="RemoveBugItem" HorizontalAlignment="Right" Height="25" Margin="0,1.83,9.662,0" VerticalAlignment="Top" Width="25" IsDefault="True" ToolTip="Delete Bug Entry" Grid.Column="1" Click="RemoveBugItem_Click">
    					<Image Height="20" Source="Resources/sign_out.png" Stretch="Fill" Width="20"/>
    				</Button>
    				<ListView x:Name="BugList" Margin="-1,31.163,0,0" Grid.ColumnSpan="2" SelectionChanged="BugList_SelectionChanged">
                        <ListView.Resources>
                            <DataTemplate x:Key="LinkToSite">
                                <StackPanel Orientation="Horizontal">
                                    <Label>
                                        <Hyperlink x:Name="LinkToAct" NavigateUri="{Binding SourceFilePath}" Click="LinkToAct_Click"><InlineUIContainer>
                                        		<TextBlock Text="{Binding SourceFilePath}"/>
                                        	</InlineUIContainer></Hyperlink>
                                    </Label>
                                </StackPanel>
                            </DataTemplate>
                            <DataTemplate x:Key="LinkToSite1">
                                <StackPanel Orientation="Horizontal">
                                    <Label>
                                        <Hyperlink x:Name="LinkToAct" NavigateUri="{Binding TestFilePath}" Click="LinkToAct_Click">
                                            <InlineUIContainer>
                                                <TextBlock Text="{Binding TestFilePath}"/>
                                            </InlineUIContainer>
                                        </Hyperlink>
                                    </Label>
                                </StackPanel>
                            </DataTemplate>
                            <DataTemplate x:Key="SolveUnsolveMark">
                                <Grid Width="25" Height="25">
                                    <Image Source="{Binding Status}" Width="20" Height="20"/>
                                </Grid>
                            </DataTemplate>
                        </ListView.Resources>
    					<ListView.View>
    						<GridView>
                                <GridViewColumn Header="Member ID" Width="75" DisplayMemberBinding="{Binding DistributionID}"/>
                                <GridViewColumn Header="Exception Type" Width="100" DisplayMemberBinding="{Binding ExceptionTypeName}"/>
                                <GridViewColumn Header="Message" Width="150" DisplayMemberBinding="{Binding Message}"/>
                                <GridViewColumn Header="Source File Location" Width="100" CellTemplate="{StaticResource ResourceKey=LinkToSite}"/>
                                <GridViewColumn Header="Test File Location" Width="100" CellTemplate="{StaticResource ResourceKey=LinkToSite1}"/>
                                <GridViewColumn Header="Assembly Version" Width="100" DisplayMemberBinding ="{Binding AssemblyVersion}"/>
                                <GridViewColumn Header="Status" CellTemplate="{StaticResource ResourceKey=SolveUnsolveMark}"/>
                            </GridView>
    					</ListView.View>
    				</ListView>
    				<Button x:Name="DetailButton" Content="Detail" VerticalAlignment="Top" Margin="6.334,2.661,0,0" HorizontalAlignment="Left" Width="46.333" Click="ShowDetail_Click" />
    			</Grid>
    		</TabItem>
    		<TabItem Header="Group Progress" Name="GroupProgressTabItem">
    			<Grid Background="#FFB2B2B2">
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition/>
    				</Grid.ColumnDefinitions>
    				<CheckBox x:Name="CountOnlyMyBugsCheckBox" Content="Count Only My Bugs" HorizontalAlignment="Left" Height="20.163" Margin="7.94,8,0,0" VerticalAlignment="Top" Width="147" Click="CountOnlyMyBugs_Click" />
    				<ScrollViewer Margin="-1,28.163,0,0" ScrollViewer.HorizontalScrollBarVisibility="Auto" Background="White">
    					<StackPanel x:Name="DrawingSpace" Height="256" Width="563"/>
    				</ScrollViewer>
    				<ComboBox x:Name="DisplayMethodComboBox" Height="24.163" Margin="213.5,0,258.5,0" VerticalAlignment="Top" SelectionChanged="DisplayMethod_SlectionChanged">
    					<ComboBoxItem x:Name="DrawBySolvedComboBoxItem" Content="All" Height="14.5" Margin="7,0,11.5,0"/>
    					<ComboBoxItem x:Name="DrawByUnsolvedComboBoxItem" Content="Unsolved" Height="14.5" Margin="7,0,11.5,0"/>
    					<ComboBoxItem x:Name="DrawByRatioComboBoxItem" Content="Ratio" Height="14.5" Margin="7,0,11.5,0"/>
    				</ComboBox>
    				<TextBlock Height="16.666" Margin="159.684,7.497,0,0" TextWrapping="Wrap" VerticalAlignment="Top" HorizontalAlignment="Left" Width="60.5"><Run Language="zh-cn" Text="Draw By:"/></TextBlock>
    				<TextBlock HorizontalAlignment="Right" Height="21" Margin="0,6.163,30,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="214" Foreground="White" FontStyle="Italic" FontSize="10.667"><Run Language="zh-cn" Text="Changes are reflected on next startup"/></TextBlock>
    			</Grid>
    		</TabItem>
    	</TabControl>
    	<StackPanel x:Name="StatusStackPanel" Height="41" Margin="8,0,3,0" VerticalAlignment="Bottom" Orientation="Horizontal">
    		<Image x:Name="ConnectionStatesImage" Width="44"/>
    		<Image x:Name="KliveImage" Width="44" Margin="5,0,0,0"/>
    	</StackPanel>
    	<TextBlock x:Name="StatisticsTextBlock" Height="22" Margin="190.94,10.668,162,0" TextWrapping="Wrap" VerticalAlignment="Top" FontWeight="Bold" Visibility="Hidden"><Run Language="zh-cn" Text="Statistics "/><Run FontWeight="Normal" FontStyle="Italic" FontSize="9.333" Language="zh-cn" Text="(Updates are reflected on next startup)"/><Run FontWeight="Normal" FontSize="9.333" Language="zh-cn" Text=":"/></TextBlock>
    	<TextBlock x:Name="RealTimeDisplayTextBlock" HorizontalAlignment="Right" Height="18" Margin="0,11,19,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="143"/>
    	<Border x:Name="BorderBSOD" BorderBrush="Black" BorderThickness="5" Margin="0,95,-591,45" CornerRadius="10" HorizontalAlignment="Right" Width="573" RenderTransformOrigin="0.5,0.5">
    		<Border.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform/>
    				<SkewTransform/>
    				<RotateTransform/>
    				<TranslateTransform/>
    			</TransformGroup>
    		</Border.RenderTransform>
    		<Border.Effect>
    			<DropShadowEffect BlurRadius="73" Opacity="0.875"/>
    		</Border.Effect>
    		<TextBlock x:Name="DetailPanel" Margin="0,3.5,3,3" TextWrapping="Wrap" Background="#FF113989" Foreground="White"><Run Language="zh-cn" Text="Detailed Information:"/><LineBreak/><Run Language="zh-cn"/></TextBlock>
    	</Border>
        
    </Grid>
</Window>
